import { Module } from 'vuex'
import type { ProductState } from '../types/product'
import type { RootState } from '../types/index'
export const product:Module<ProductState, RootState> = {
  namespaced: true,
  state: {
    space: 'www'
  },
  mutations: {
    init (state:ProductState, data: string) {
      state.space = data
    }
  },
  actions: {
    init ({ commit, state }: any, data: any) {
      commit('init', data)
    }
  },
  getters: {

  }
}
